﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Eflong.Config.DataFilter
{
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute( "xsd" , "2.0.50727.3038" )]
    [System.SerializableAttribute( )]
    [System.Diagnostics.DebuggerStepThroughAttribute( )]
    [System.ComponentModel.DesignerCategoryAttribute( "code" )]
    [System.Xml.Serialization.XmlTypeAttribute( AnonymousType = true )]
    public partial class DevID
    {
        private string beginField;

        private string endField;

        private string containField;

        private string equalField;

        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute( )]
        public string Begin
        {
            get
            {
                return this.beginField;
            }
            set
            {
                this.beginField = value;
            }
        }

        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute( )]
        public string End
        {
            get
            {
                return this.endField;
            }
            set
            {
                this.endField = value;
            }
        }

        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute( )]
        public string Contain
        {
            get
            {
                return this.containField;
            }
            set
            {
                this.containField = value;
            }
        }

        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute( )]
        public string Equal
        {
            get
            {
                return this.equalField;
            }
            set
            {
                this.equalField = value;
            }
        }

        [System.Xml.Serialization.XmlIgnore]
        public List<string> BeginList
        {
            get
            {
                if ( string.IsNullOrEmpty( Begin ) )
                    return new List<string>( );
                else
                    return Begin.Split( new char[ ] { ',' } , StringSplitOptions.RemoveEmptyEntries ).ToList( );
            }
        }

        [System.Xml.Serialization.XmlIgnore]
        public List<string> EndList
        {
            get
            {
                if ( string.IsNullOrEmpty( End ) )
                    return new List<string>( );
                else
                    return End.Split( new char[ ] { ',' } , StringSplitOptions.RemoveEmptyEntries ).ToList( );
            }
        }

        [System.Xml.Serialization.XmlIgnore]
        public List<string> ContainList
        {
            get
            {
                if ( string.IsNullOrEmpty( Contain ) )
                    return new List<string>( );
                else
                    return Contain.Split( new char[ ] { ',' } , StringSplitOptions.RemoveEmptyEntries ).ToList( );
            }
        }

        [System.Xml.Serialization.XmlIgnore]
        public List<string> EqualList
        {
            get
            {
                if ( string.IsNullOrEmpty( Equal ) )
                    return new List<string>( );
                else
                    return Equal.Split( new char[ ] { ',' } , StringSplitOptions.RemoveEmptyEntries ).ToList( );
            }
        }
    }
}